﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package eu.orangeflash.webapis.wp.utils {
    import eu.orangeflash.webapis.wp.*;
    import eu.orangeflash.webapis.xmlrpc.utils.*;

    public class Deserializer extends eu.orangeflash.webapis.xmlrpc.utils.Deserializer {

        public function Deserializer(){
            super();
        }
        override protected function createObject(value:XMLList):Object{
            var result:Object;
            result = super.createObject(value);
            if (((((!((result.dateCreated == null))) && (!((result.postid == null))))) && (!((result.description == null))))){
                result = new Content(result);
            } else {
                if (((!((result.id == null))) && (!((result.name == null))))){
                    result = new Category(result.id, result.name);
                };
            };
            return (result);
        }

    }
}//package eu.orangeflash.webapis.wp.utils 
